import axios from '@/utils/axios'
import {PATH_VERSON} from '@/common/constant'

//登录
const fetchUserLogin = data => {
  return axios({
    url: `${PATH_VERSON}/user/login`,
    method: 'post',
    data
  })
}

//解密
const fetchUserInfo = () => {
  return axios({
    url: `${PATH_VERSON}/user/info`,
    method: 'get'
  })
}

export {
  fetchUserLogin,
  fetchUserInfo
}